body {
    font-family: Arial, sans-serif;
    background-color: #f3f3f3;
    margin: 0;
    padding: 0;
}

.banner {
    background-color: black;
    color: white;
    padding: 40px;
    text-align: center;
    font-size: 30px;
    position: relative;
    z-index: 1;
}

.menu {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    width: 200px;
}

.botonCategorias {
    width: 100%;
    padding: 10px 20px;
    border: 1px solid black;
    background: white;
    cursor: pointer;
    font-size: 16px;
    box-sizing: border-box;
    text-decoration: none;
    color: black;
    display: block;
    text-align: center;
}

.menuDesplegable {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: -1px;
    width: 100%;
    background: white;
    border: 1px solid black;
    box-sizing: border-box;
    z-index: 1001;
}

.menuDesplegable a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
}

.menuDesplegable a:hover {
    background: #e5e5e5;
}

.productos {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.productos3x3 {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.producto {
    background: white;
    padding: 14px;
    box-sizing: border-box;
}

.producto a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.producto img {
    width: 100%;
    display: block;
}

.precio {
    font-weight: bold;
}

.nombre {
    color: #333;
}

.categorias {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.categoria {
    position: relative;
    display: block;
    overflow: hidden;
    background: white;
    text-decoration: none;
}

.categoria img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.texto {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 28px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    text-align: center;
}

.categoria:hover img {
    transform: scale(1.05);
}

/* PÁGINA DE PRODUCTO */

.paginaProducto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
    align-items: start;
}

.galeriaProducto {
    background: white;
    padding: 20px;
    box-sizing: border-box;
}

#imagenPrincipal {
    width: 100%;
    display: block;
}

.miniaturas {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.miniaturas img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #ccc;
    background: white;
}

.infoProducto {
    background: white;
    padding: 25px;
    box-sizing: border-box;
}

.tituloProducto {
    margin-top: 0;
    font-size: 32px;
}

.precioProducto {
    font-size: 28px;
    font-weight: bold;
    margin: 15px 0;
}

.descripcionProducto {
    font-size: 18px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 25px;
}

.selectorTalla {
    display: block;
    width: 200px;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 25px;
    font-size: 16px;
}

.botonCesta {
    padding: 12px 24px;
    border: 1px solid black;
    background: black;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.botonCesta:hover {
    background: #333;
}

.mensajeCesta {
    margin-top: 15px;
    font-weight: bold;
}

/* CARRITO */

.carritoContenedor {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
}

.botonCarrito {
    width: 64px;
    height: 64px;
    border: 1px solid black;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
}

.botonCarrito img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.contadorCarrito {
    position: absolute;
    top: -8px;
    right: -8px;
    background: black;
    color: white;
    font-size: 14px;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.desplegableCarrito {
    display: none;
    position: absolute;
    top: 74px;
    right: 0;
    width: 340px;
    max-height: 480px;
    overflow-y: auto;
    background: white;
    border: 1px solid black;
    box-sizing: border-box;
    padding: 15px;
}

.tituloCarrito {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 15px 0;
}

.itemCarrito {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.itemCarritoNombre {
    font-weight: bold;
    margin-bottom: 5px;
}

.itemCarritoDetalles {
    color: #333;
    font-size: 15px;
    line-height: 1.4;
}

.totalCarrito {
    margin-top: 15px;
    font-size: 20px;
    font-weight: bold;
}

.botonFinalizar {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    border: 1px solid black;
    background: black;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.botonFinalizar:hover {
    background: #333;
}

.carritoVacio {
    color: #555;
    padding: 10px 0;
}

.accionesCarritoItem {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.botonAccionCarrito {
    padding: 8px 10px;
    border: 1px solid black;
    background: white;
    cursor: pointer;
    font-size: 14px;
}

.botonEliminarCarrito {
    background: #f5d7d7;
}

.bloqueDireccion {
    margin-top: 15px;
}

.inputDireccion {
    width: 100%;
    min-height: 90px;
    margin-top: 8px;
    padding: 10px;
    box-sizing: border-box;
    resize: vertical;
    font-size: 14px;
}

/* NUEVO: CATEGORÍAS SIN IMAGEN */

.categoriasGrid {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.categoriaBox {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: linear-gradient(135deg, #111 0%, #2a2a2a 100%);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.categoriaBox:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #000 0%, #3a3a3a 100%);
}

.categoriaContenido {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.categoriaContenido h2 {
    margin: 0;
    color: white;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
}

.categoriaBox::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: white;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
}

.categoriaBox:hover::after {
    transform: translateX(0);
}
.footerLink {
    text-align: center;
    padding: 30px;
}

.footerLink a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    border-bottom: 2px solid black;
    padding-bottom: 3px;
}

.footerLink a:hover {
    color: #555;
    border-color: #555;
}